#include "Event.h"

CEvent::CEvent(EVENTID eventID, float fCountdown, void* pParam, unsigned int uiActor, unsigned int uiTarget)
{
	if(fCountdown <= 0.0f)
	{
		m_nEventType = event_normal;
	}
	else if(uiActor == 0 && uiTarget == 0)
	{
		m_nEventType = event_timed;
	}
	else
	{
		m_nEventType = event_crossed;
	}

	m_EventID = eventID;
	m_pParam  = pParam;
	m_fThreshold = fCountdown;
	m_uiActor = uiActor;
	m_uiTarget = uiTarget;
}